	
	
	 * load data to use
 use "data_acute_illness_patients_mixedlogit_vs4.dta", clear

  *****************************************************************
  *Table A.4: Conditional Logit models of health provider choice
  *****************************************************************
  * CL uninstrumented 
  
  clogit d_  dist_dw_hf_2 dist_22  alt2-alt4    doctor_tot  generator2009 beds p_i1 p_i2 p_i3 p_i4  , group(idid) cluster(q01_10)

  
  * CL with control function

  clogit d_  dist_dw_hf_2 dist_22  alt2-alt4    doctor_tot  generator2009 beds p_i1 p_i2 p_i3 p_i4  nu_8d nu_8dsq, group(idid) cluster(q01_10)

  
  
  
